package com.doubtech.ahome.widgets.openclock;

import android.content.Context;
import android.view.View;

/**
 * <p>Anyone want to develop a widget for aHome can implement this interface.</p>
 * 
 * @author maruojie
 */
public interface AHomeWidgetProvider {
	/**
	 * <p>Width of your widget. Don't return a value more than 4</p>
	 * 
	 * @return width value
	 */
	public int getAHomeWidgetWidth();
	
	/**
	 * <p>Height of your widget. Don't return a value more than 4</p>
	 * 
	 * @return height value
	 */
	public int getAHomeWidgetHeight();
	
	/**
	 * <p>Create your widget and return it to aHome</p>
	 * 
	 * @param context context
	 * @return Widget view
	 */
	public View createAHomeWidgetView(Context context);
}
